home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
help
/
error
< prev
next >
Wrap
Text File
|
1994-09-21
|
604b
|
18 lines
error:
Syntax: error ( )
error ( "error message" )
Description:
The error function allows user-functions to jump back to the
prompt when some sort of error has occurred. The nature of the
error is up to the user. When an error is detected the user
simply calls error(). If no argument is supplied, error() will
print the default message. Otherwise, error prints the string
supplied as an argument, and jumps back to the prompt.
Jumping "back to the prompt" means execution of the current
loop or function is terminated immediately and execution of
any prompt-level statements is performed.